<?php
	class QQ_L1_Parser{
		
		private $pageURL = '';
		
		function __construct($pageURL){
			$this->pageURL = $pageURL;
		}
		
		function parse(){
			echo $this->pageURL."<br>";
			$contents = myfile_get_content($this->pageURL);
			$html = str_get_html($contents);
			foreach($html->find('div.Q-tpList h3 a') as $article) {
				$item['news_title']     =  mb_convert_encoding($article->innertext,"utf8","gb2312");
			    $item['news_url']     =  $article->href;
			    $articles[] = $item;
			}
			return $articles;
		}
		
	}
	
	
?>